package com.java1234.util;

import java.sql.Connection;
import java.sql.SQLException;

import javax.sql.DataSource;

import com.mchange.v2.c3p0.ComboPooledDataSource;

public class JdbcUtil {
public static DataSource ds = new ComboPooledDataSource("myc3p0");
	
	public static Connection getConnection() throws SQLException
	{
		return ds.getConnection();
	}
	
	public static DataSource getDataSource()
	{
		return ds;
	}

}
